package com.hs.sfzy.controller;

import com.hs.sfzy.entity.Consultanttag;
import com.hs.sfzy.service.ConsultanttagService;
import com.hs.sfzy.until.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName ConsultanttagController
 * @Description TODO
 * @Author Chen
 * @Date 2025年08月15日 15:50
 * @Version 1.0
 */
@RestController
@RequestMapping("Consultanttag")
public class ConsultanttagController {
    @Autowired
    private ConsultanttagService consultanttagService;

    @GetMapping("{consultantId}")
    public R getConsultanttagByConsultantId(@PathVariable("consultantId") Integer consultantId){
        List<Consultanttag> consultanttagByConsultantId = consultanttagService.getConsultanttagByConsultantId(consultantId);
        return R.ok(consultanttagByConsultantId);
    }
}
